<?
require 'inc.php';
$db_admin = &new db($scfg['db']['admin']);
$table 	  = 'ad_index_big_img';
$where      = array(
	"where" => " where begin < :begin and end > :end ",
	"bind"  => array(
		"begin" => time(),
		"end"	=> time()
	)
);
$rs 		= $db_admin->dataArray("select * from {$table} {$where['where']} order by id desc limit 0,20".$rows,$where['bind']);
header("Content-type: application/xml");
echo '<?xml version="1.0" encoding="utf-8"?>';
echo '<bcaster>';
foreach($rs as $v)
{
	$fileName = surl::get("img")."adm/index_big_img/".$v['id'].".jpg";
	echo '<item item_url="'.$fileName.'" link="'.$v['url'].'" itemtitle="'.$v['subject'].'" />';
}
echo '</bcaster>';
?>